package pl.com.sthaether.mc.engine.data;

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.paint.Color;

public class MCColorRange extends MCValuesRange {

    private ObjectProperty<Color> color;

    public MCColorRange(double start, double end, Color color) {
        super(start, end);
        this.color = new SimpleObjectProperty<>(color);
    }

    public Color getColor() {
        return color.getValue();
    }

    public void setColor(Color color) {
        this.color.setValue(color);
    }

    public ObjectProperty<Color> colorProperty() {
        return color;
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
